package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.google.common.collect.Maps;
import com.kly.user.db.dao.MessageCmStausDao;
import com.kly.user.db.entity.MessageCmStausEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;

/**
* User: linqu
* Date: 2023-11-01
* Time: 20:37:03.333
*/

@Repository
public class MessageCmStausDaoImpl extends AbstractBaseMapper<MessageCmStausEntity> implements MessageCmStausDao {
    @Override
    public MessageCmStausEntity getMessageCmStatus(String userCode, String modelUserCode) {
        final HashMap<String, Object> params = Maps.newHashMap();
        params.put("userCode", userCode);
        params.put("modelUserCode", modelUserCode);
        return this.getSqlSession().selectOne(this.getStatement("getMessageCmStatus"), params);
    }
}